import request from '@/utils/request'

// 查询化学品处理列表
export function listHandling(query) {
  return request({
    url: '/safe/handling/list',
    method: 'get',
    params: query
  })
}

// 查询化学品处理详细
export function getHandling(chId) {
  return request({
    url: '/safe/handling/' + chId,
    method: 'get'
  })
}

// 新增化学品处理
export function addHandling(data) {
  return request({
    url: '/safe/handling',
    method: 'post',
    data: data
  })
}

// 修改化学品处理
export function updateHandling(data) {
  return request({
    url: '/safe/handling',
    method: 'put',
    data: data
  })
}

// 删除化学品处理
export function delHandling(chId) {
  return request({
    url: '/safe/handling/' + chId,
    method: 'delete'
  })
}

// 导出化学品处理
export function exportHandling(query) {
  return request({
    url: '/safe/handling/export',
    method: 'get',
    params: query
  })
}